package com.hdjk.view.config;

import com.hdjk.view.BuildConfig;

public class Constant {
    //当前首次安装的版本号
    public static String FIRST_VERSION = "1";
    // 保存的图片
    public static String YFHDCF_IMAGE_FILE_PATH = "/yfhdcf/image";
    // 错误日志存储路径
    public static String YFHDCF_ERROR_LOG_FILE_PATH = "/yfhdcf/log";
    // 文件下载地址
    public static final String downLoadPath = "/yfhdcf/download/";

    // IP端口地址
    public static final String URL_PORT = BuildConfig.yfhdcf_SERVICE_URL;
    public static final String URL_API = URL_PORT + "/api/";
    public static final String URL_API_APICALL = URL_API + "ApiCall?methodPath=";
    // 图片url的地址
    public static String NEW_IMG_URL = URL_PORT + "/";
    public static final String CUSTOM_FUND_IMG_URL=URL_PORT+"/upload/product/";//私募基金图片地址

    public static final String json_format = "application/json; charset=utf-8";

    // 各个接口地址----start
    public static final String URL_REGISTER = URL_API + "Auth/Register"; // 注册
    public static final String URL_LOGIN = URL_API + "Auth/Login"; // 登录
    public static final String URL_EXCHANGETOKEN = URL_API + "Auth/ExchangeToken"; // 重新获取Token
    public static final String URL_GET_PHONE_CODE = URL_API + "SiteConfig/RequestPhoneCode"; // 获取手机验证码
    public static final String URL_GET_PHONE_CODE_IS_REGISTER = URL_API + "Auth/SendPwdResetCode"; // 获取手机验证码判断是否注册
    public static final String URL_GET_FAVORITE_LIST = URL_API + "Favorite/GetList";//获取收藏列表
    public static final String URL_ADD_FAVORITE = URL_API + "Favorite/AddFavorite";//添加收藏
    public static final String URL_DEL_FAVORITE = URL_API + "Favorite/DelFavoriteByFundCode";//删除收藏
    public static final String URL_IS_FAVORITED = URL_API + "Favorite/IsFavorited";//是否已收藏
    public static final String URL_GET_HISTORICAL_TRANSACTION_LIST = URL_API_APICALL + "/public/transaction/get-order-list";//获取基金和理财历史交易列表
    public static final String URL_GET_GROUP_HISTORICAL_TRANSACTION_LIST = URL_API_APICALL + "/public/product/portfolio/get-portfolio-order-list";//获取组合历史交易列表
    public static final String URL_GET_INTEGRAL = URL_API + "Credits";//获取积分
    public static final String URL_GET_INTEGRAL_LIST = URL_API + "Credits/GetItem";//获取积分收支列表
    public static final String URL_GET_INTEGRAL_IMAGE=URL_PORT+"/img_app/jf_readme.png";//获取积分说明图片
    public static final String URL_GET_RECOMMEND_LIST = URL_API + "User/GetSubset";//获取推荐列表
    public static final String URL_GET_BANNER_LIST = URL_API + "SiteConfig/BannerList"; //获取Banner图列表
    public static final String URL_GET_BANK_LIST = URL_API_APICALL + "/public/investor/find-bank"; //获取银行列表
    public static final String URL_OPEN_ACCOUNT = URL_API_APICALL + "/public/investor/register-investor"; //开户
    public static final String URL_GET_OPEN_ACCOUNT_IDENTIFYING_CODE = URL_API_APICALL + "/public/investor/send-otp"; //获取开户验证码
    public static final String URL_GET_ADD_BANK_CARD_IDENTIFYING_CODE = URL_API_APICALL + "/public/investor/add-bank-send-otp"; //获取添加银行卡验证码
    public static final String URL_ADD_BANK_CARD = URL_API_APICALL + "/public/investor/add-bank-otp"; //添加银行卡
    public static final String URL_DEL_BANK_CARD = URL_API_APICALL + "/public/investor/unbind-bank"; //注销银行卡
    public static final String URL_GET_USER_INFO= URL_API + "User/GetUser"; //获取金控用户信息
    public static final String URL_GET_USER_ID= URL_API + "User/GetUserId"; //获取金控用户ID
    public static final String URL_GET_IFAST_USER_INFO= URL_API_APICALL + "/public/investor/get-investor-info"; //获取奕丰用户信息
    public static final String URL_ALERT_USER_INFO= URL_API + "User/Edit"; //修改用户信息
    public static final String URL_ALERT_LOGIN_PWD= URL_API + "User/ModifyPwd"; //修改登录密码
    public static final String URL_ALERT_PHONE = URL_API + "User/ModifyPhone"; // 修改手机号
    public static final String URL_ALERT_TRAN_PWD= URL_API_APICALL + "/public/investor/investor-update-password"; //修改交易密码
    public static final String URL_FORGET_TRAN_PWD_SEND_CODE= URL_API_APICALL + "/public/investor/investor-forget-password-send-otp"; //忘记交易密码获取验证码
    public static final String URL_FORGET_TRAN_PWD_CHECK_CODE= URL_API_APICALL + "/public/investor/investor-forget-password-otp"; //忘记交易密码校验验证码
    public static final String URL_FORGET_TRAN_PWD_RESET_PWD= URL_API_APICALL + "/public/investor/investor-reset-password"; //忘记交易密码修改密码
    public static final String URL_FORGET_LOGIN_PWD = URL_API + "Auth/ModifyPwd"; // 忘记登录密码
    public static final String URL_GET_ACCOUNT_TOTAL_ASSETS= URL_API_APICALL + "/public/transaction/get-holdings-statistic"; //获取账户总资产
    public static final String URL_GET_ACCOUNT_HOLDING_FUND= URL_API_APICALL + "/public/transaction/get-investor-holdings"; //获取账户持有基金资产列表
    public static final String URL_GET_RECOMMEND_GROUP = URL_API + "SiteConfig/GetRecommend";//获取推荐组合
    public static final String URL_GET_GROUP_DETAIL = URL_API_APICALL + "/public/product/portfolio/get-product-portfolio-details";//获取组合详情
    public static final String URL_GET_FUND_LIST = URL_API_APICALL + "/public/product/batch-get-fund-info";//获取基金列表
    public static final String URL_GET_FUND_DETAIL = URL_API_APICALL + "/public/product/get-single-fund-basic";//获取基金详情
    public static final String URL_GET_FIND_FUND_PERFORMANCE = URL_API_APICALL + "/public/product/find-fund-performance";//获取单只基金的增长走势图
    public static final String URL_GET_FUND_PERFORMANCE = URL_API_APICALL + "/public/product/get-fund-performance-by-fund-code"; //获取基金阶段收益表现
    public static final String URL_GET_PORTFPLIO_PERFORMANCE_REFERENCE = URL_API_APICALL + "/public/product/portfolio/get-product-portfolio-performance-reference";//获取奕丰推荐组合的历史参考收益率
    public static final String URL_GET_PORTFPLIO_PERFORMANCE = URL_API_APICALL + "/public/product/portfolio/get-product-portfolio-performance";//获取奕丰推荐组合的收益率
    public static final String URL_GET_FUND_TYPE_PERFORMANCE = URL_API_APICALL + "/public/product/get-fund-type-performance-by-fund-type"; //获取同类基金阶段收益表现
    public static final String URL_GET_MARKET_PERFORMANCE = URL_API_APICALL + "/public/product/get-market-index-performance-by-index-code"; //获取市场阶段收益表现
    public static final String URL_GET_FINANCIAL_LIST = URL_API_APICALL + "/public/product/collective/find-collective-info-list";//获取理财产品列表
    public static final String URL_GET_FINANCIAL_DETAIL = URL_API_APICALL + "/public/product/collective/get-collective-detail";//获取理财产品详情
    public static final String URL_GET_CUSTOM_FUND_LIST = URL_API + "Product";//获取预约基金产品列表
    public static final String URL_GET_CUSTOM_FUND_DETAIL = URL_API + "Product/";//获取预约基金产品详情
    public static final String URL_BUY_CUSTOM_FUND = URL_API + "Product";//提交购买预约基金信息
    public static final String URL_GET_RISK_TEST_LIST = URL_API_APICALL + "/public/investor/get-risk-test-subjects"; //获取风险测试题目列表
    public static final String URL_SUBMIT_RISK_TEST = URL_API_APICALL + "/public/investor/get-risk-appetite-result"; //获取风险测试结果
    public static final String URL_GET_RISK_TEST_DESC = URL_API + "Info4IFAST/GetRiskAppetiteResultDesc"; //获取风险测试结果详情
    public static final String URL_SUBMIT_ZHD_RISK_TEST = URL_API + "User/Assess"; //获取风险测试结果（金控）
    public static final String URL_GET_PAY_METHOD = URL_API_APICALL + "/public/transaction/get-investor-payment-method"; //获取支付方式列表
    public static final String URL_GET_BUY_FEE_AND_CHARGE = URL_API_APICALL + "/public/transaction/get-buy-fee-and-charge"; //获取购买费率和估算费用
    public static final String URL_GET_BUY_GROUP_FEE = URL_API_APICALL + "/public/product/portfolio/purchase-portfolio-transaction-fee"; //获取购买组合费率和估算费用
    public static final String URL_BUY_FUND = URL_API_APICALL + "/public/transaction/buy-fund-transaction"; //购买基金
    public static final String URL_BUY_FINANCIAL = URL_API_APICALL + "/public/product/collective/buy-collective-transaction"; //购买理财
    public static final String URL_BUY_GROUP = URL_API_APICALL + "/public/product/portfolio/purchase-portfolio-transaction"; //购买组合
    public static final String URL_REDEEM_FUND = URL_API_APICALL + "/public/transaction/redeem-fund-transaction"; //赎回基金
    public static final String URL_REDEEM_FINANCIAL = URL_API_APICALL + "/public/product/collective/redeem-collective-transaction"; //赎回理财
    public static final String URL_REDEEM_GROUP = URL_API_APICALL + "/public/product/portfolio/redeem-portfolio-transaction"; //赎回组合
    public static final String URL_CREATE_BUY_PLAN = URL_API_APICALL + "/public/transaction/create-rsp-fund-plan"; //创建基金定投计划
    public static final String URL_GET_BUY_PLAN_LIST = URL_API_APICALL + "/public/transaction/find-investor-rsp-plans"; //获取定投计划列表
    public static final String URL_GET_BUY_PLAN_EXECUTE_HISTORY = URL_API_APICALL + "/public/transaction/get-executive-condition-history-order-list"; //获取定投计划执行情况
    public static final String URL_MODIFY_BUY_PLAN = URL_API_APICALL + "/public/transaction/edit-rsp-fund-plan"; //修改基金定投计划
    public static final String URL_STOP_BUY_PLAN = URL_API_APICALL + "/public/transaction/terminate-rsp-fund-plan"; //终止基金定投计划
    public static final String URL_PAUSE_BUY_PLAN = URL_API_APICALL + "/public/transaction/postpone-rsp-fund-plan"; //暂停基金定投计划
    public static final String URL_RESTART_BUY_PLAN = URL_API_APICALL + "/public/transaction/restart-rsp-fund-plan"; //重启基金定投计划
    public static final String URL_GET_WALLET_HISTORICAL_DATA = URL_API_APICALL + "/public/wallet/find-cash-wallet-fund-history-nav"; //获取现金钱包基金历史数据
    public static final String URL_GET_WALLET_HOLDINGS = URL_API_APICALL + "/public/wallet/get-cash-wallet-holdings"; //获取现金钱包资产情况
    public static final String URL_GET_WALLET_FUND = URL_API_APICALL + "/public/wallet/find-cash-wallet-fund-basic-info"; //获取现金钱包基金详情
    public static final String URL_RECHARGE_WALLET = URL_API_APICALL + "/public/wallet/recharge-cash-wallet"; //现金钱包充值
    public static final String URL_TAKE_WALLET = URL_API_APICALL + "/public/wallet/withdraw-cash-wallet"; //现金钱包提现
    public static final String URL_GET_WALLET_TRANSACTION_LIST = URL_API_APICALL + "/public/wallet/get-cash-wallet-order-info"; //获取现金钱包交易记录
    public static final String URL_GET_WALLET_PROFIT_LIST = URL_API_APICALL + "/public/wallet/get-cash-wallet-daily-profits"; //获取现金钱包收益记录
    public static final String URL_SHOPCAR_ADD = URL_API + "ShoppingCart/Add"; //加入购物车
    public static final String URL_SHOPCAR_DEL = URL_API + "ShoppingCart/Delete"; //取消购物车
    public static final String URL_SHOPCAR_EDIT = URL_API + "ShoppingCart/Edit"; //修改购物车
    public static final String URL_SHOPCAR_LIST = URL_API + "ShoppingCart/Get"; //获取购物车列表
    public static final String URL_REDEEM_TRANSACTION_FEE = URL_API_APICALL + "/public/product/portfolio/redeem-portfolio-transaction-fee"; //获取组合赎回费率和费用
    public static final String URL_REDEEM_SELL_FEE = URL_API_APICALL + "/public/transaction/get-sell-fee-and-charge"; //获取赎回费率和估算费用
    public static final String URL_HELP = URL_PORT + "/file/app_help.aspx"; //常见问题页
    public static final String URL_GET_UPDATE_APK_INFO = URL_PORT + "/file/VersionInfo.json"; // 获取apk升级信息
    // 各个接口地址----end

    // 广播开始----start
    public static final String INTENT_FILTER_STRING_UPDATE_APK_FINISH = "intent_filter_string_yfhdcf_update_apk_finish";//下载最新apk完成
    public static final String INTENT_FILTER_STRING_AFTER_NETWORK_CHANGE = "intent_filter_string_yfhdcf_after_network_change"; // 网络状态发生变化后发送的广播
    public static final String INTENT_FILTER_STRING_AFTER_IFAST_RISK_TEST = "intent_filter_string_yfhdcf_after_ifast_risk_test"; // 奕丰风险测试完成后
    public static final String INTENT_FILTER_STRING_AFTER_BUY_SUCCESS = "intent_filter_string_yfhdcf_after_buy_success"; // 组合，基金购买成功
    public static final String INTENT_FILTER_STRING_AFTER_REDEEM_SUCCESS = "intent_filter_string_yfhdcf_after_redeem_success"; // 组合，基金购买成功
    public static final String INTENT_FILTER_STRING_AFTER_BUY_PLAN_MODIFY_STATE = "intent_filter_string_yfhdcf_after_redeem_success"; // 定投计划修改状态
    public static final String INTENT_FILTER_STRING_AFTER_WALLET_EDIT = "intent_filter_string_yfhdcf_after_wallet_edit"; // 现金钱包有变化
    // 广播开始----end
}
